<template>
  <el-upload
      v-model:file-list="fileList"
      class="upload-demo"
      action="http://localhost:8080/upload"
      multiple

  >
    <el-button type="primary">Click to upload</el-button>
    <template #tip>
      <div class="el-upload__tip">
        jpg/png files with a size less than 500KB.
      </div>
    </template>
  </el-upload>

</template>

<script>
export default {
  name: "UploadView",
  data() {
    return {
      imageUrl: ''
    };
  },
  methods: {
    handleAvatarSuccess(res, file) {

      console.log(res.data)
      // this.imageUrl = res.data
    }
  }
}
</script>